package org.csu.mypetstore.api.service;

import org.csu.mypetstore.api.common.CommonResponce;
import org.csu.mypetstore.api.entity.Category;
import org.csu.mypetstore.api.entity.Item;
import org.csu.mypetstore.api.entity.Product;
import org.csu.mypetstore.api.vo.ItemVO;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

public interface CatalogService {

    CommonResponce<List<Category>> getCategoryList();
    CommonResponce<Category> getCategory(String categoryId);
    CommonResponce<List<Product>> getProductListByCategoryId(String categoryId);
    CommonResponce<Product> getProductById(String productId);
    CommonResponce<Item>getItemByItemid( String itemId);
    CommonResponce<List<ItemVO>> getItemsByProductId(String productId);
    CommonResponce<List<Product>>searchProductByKey(String keyword);
    }
